package org.jctc.els.modules.biz.service.elsTeamProject;

import com.baomidou.mybatisplus.core.metadata.IPage;
import org.jctc.els.modules.biz.entity.elsTeamProject.ElsTeamProject;
import org.jctc.els.modules.biz.vo.ElsTeamProjectVO;
import org.springblade.core.mp.base.BaseService;

import java.util.List;

/**
 * @author maxinyu
 * @title: elsTeamProjectService
 * @projectName evaluationsystem-boot
 * @description:
 * @date 2022/6/2414:32
 */
public interface ElsTeamProjectService extends BaseService<ElsTeamProject> {
    /**
     * 查询此小组改项目是否已存在
     * @param projectId
     * @param teamId
     * @return
     */
    int selectProjectAlreadyExists(Long projectId,Long teamId);

    IPage<ElsTeamProjectVO> getProjectsList(IPage<ElsTeamProjectVO> page, String teamId);

    void removeListByIds(List<Long> ids);

    /**
     * 解绑小组项目
     * @param teamId
     * @param projectIds
     * @return
     */
    boolean removeTeamProjects(Long teamId,List<Long> projectIds);
}
